package com.itlong.cloud.project.property;

import com.itlong.cloud.POJO.DTO.property.PropertyValueServerSaveDTO;
import com.itlong.cloud.POJO.VO.property.PropertyValueServerGetOneVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;
import java.util.Set;

/**
 * <desc>
 *      物业临时通行增值业务接口协议提供对象
 * </desc>
 *
 * @createDate 2019-05-31
 */
@FeignClient(name = "project-service")
public interface IPropertyValueServerServiceClient {

    /**
     * <desc>
     *     处理过期临时通行房间
     * <desc/>
     *
     * @return  MessageVO 标准格式化响应结果
     * @author Qiang.S
     * @createDate 2019/05/31
     */
    @PostMapping(path = "/expenses/value/doTemporaryOverdue")
    Map<String, Set<String>> doTemporaryOverdue() throws Exception;

    /**
     * <desc>
     *      获取单个对象
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/29
     */
    @PostMapping(path = "/property/propertyValue/payRule/getOne")
    PropertyValueServerGetOneVO getOne(@RequestParam("projectId") String projectId);

    /**
     * <desc>
     *      保存物业增值配置
     * </desc>
     *
     * @param dto
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/29
     */
    @PostMapping(path = "/property/propertyValue/payRule/save")
    String save(@RequestBody PropertyValueServerSaveDTO dto) throws Exception;
}
